import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/alchemy/index'
import seed from '@/components/dig/seed'
import ginseng_balance from '@/components/dig/ginseng_balance'
import sold from '@/components/dig/sold'
import assets from '@/components/dig/assets'
import ginsenguser from '@/components/alchemy/ginsenguser'
import userdata from '@/components/dig/userdata'
import assetss from '@/components/alchemy/assetss'
import recharge from '@/components/dig/ginseng_recharge'
import indexrecharge from '@/components/alchemy/ginseng_recharge'
import seed_two from '@/components/seed_two'
import login from '@/components/login'
import register from '@/components/register'
import register_success from '@/components/register_success'
import choosePage from '@/components/choosePage'
import ginseng_gameLog from '@/components/dig/ginseng_gameLog'
import index_ginseng_gameLog from '@/components/alchemy/ginseng_gameLog'
import assetes from '@/components/alchemy/assetes'
import seedstart from '@/components/dig/start'
import indexstart from '@/components/alchemy/start'
import index_ginseng_balance from '@/components/alchemy/ginseng_balance'
import forget from '@/components/forget'
import index_dugResult from '@/components/dig/dugResultwo'
import seed_dugResult from '@/components/dig/dugResult'
import index_result from '@/components/alchemy/dugResult'
import digPopup from '@/components/dig/popup'
import digSuccess from '@/components/dig/digSuccess'
import progress from '@/components/progressbar'
import thressseed from '@/components/thressseed'
import winningResult from '@/components/dig/winningResult'
import Loading from '@/components/loading.vue'
import gameArea from '@/components/gameArea.vue'
import chooseType from '@/components/chooseType.vue'


Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [
        {
            path: '/chooseType/:id',
            name: 'chooseType',
            component: chooseType
        },
        {
            path: '/thressseed',
            name: 'thressseed',
            component: thressseed
        },
        {
            path: '/progress',
            name: 'progress',
            component: progress
        },
        {
            path: '/gengseng_dugresult',
            name: 'gengseng_dugresult',
            component: seed_dugResult
        },
        {
            path: '/index_dugresult:id',
            name: 'index_dugresult',
            component: index_dugResult
        },
        {
            path: '/index_result',
            name: 'index_result',
            component: index_result
        },
        {
            path: '/',
            name: 'register',
            component: register
        }, {
            path: '/seed/:id',
            name: 'seed',
            component: seed
        },
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/assets',
            component: assets,
        },
        {
            path: '/sold',
            component: sold,
        },
        {
            path: '/ginseng_balance',
            component: ginseng_balance,
        },
        {
            path: '/index_ginseng_balance',
            component: index_ginseng_balance,
        },
        {
            path: '/userdata',
            name: 'userdata',
            component: userdata
        },
        {
            path: '/ginsenguser',
            name: 'ginsenguser',
            component: ginsenguser
        },
        {
            path: '/assetss',
            name: 'assetss',
            component: assetss
        },
        {
            path: '/ginseng_recharge',
            name: 'recharge',
            component: recharge
        },
        {
            path: '/index_ginseng_recharge',
            name: 'indexrecharge',
            component: indexrecharge
        },
        {
            path: '/seed_two',
            name: 'seed_two',
            component: seed_two
        },
        {
            path: '/login',
            name: 'login',
            component: login
        }, {
            path: '/gameLog',
            name: 'ginseng_gameLog',
            component: ginseng_gameLog
        },
        {
            path: '/index_gameLog',
            name: 'index_ginseng_gameLog',
            component: index_ginseng_gameLog
        },
        {
            path: '/assetes',
            name: 'assetes',
            component: assetes
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/registerSuccess',
            name: 'register_success',
            component: register_success
        },
        {
            path: '/choosePage',
            name: 'choosePage',
            component: choosePage
        },
        {
            path: '/indexstart',
            name: 'indexstart',
            component: indexstart
        },
        {
            path: '/seedstart',
            name: 'seedstart',
            component: seedstart
        },
        {
            path: '/forget',
            name: 'forget',
            component: forget
        },
        {
            path: '/winningResult',
            name: 'winningResult',
            component: winningResult
        },
        {
            path: '/digPopup/:id',
            name: 'digPopup',
            component: digPopup
        },
        {
            path: '/digSuccess/:number',
            name: 'digSuccess',
            component: digSuccess
        },
        {
          path: '/Loading/:name',
          name: 'Loading',
          component: Loading
      },
      {
        path: '/gameArea',
        name: 'gameArea',
        component: gameArea
      }
    ]
})
